<div xmlns:py="http://genshi.edgewall.org/">
  <table class="NiceTable Little" style="background-color: #f8f8f8;">
    <tr>
      <th py:for="heading in headings" py:content="heading" />
    </tr>
    <tr py:for="o in objects">
      <td py:for="f in fields" py:content="getattr(o, f)" />
    </tr>
  </table>
</div>